package cz.muni.fi.pv168.reminder.managers;

import cz.muni.fi.pv168.reminder.entities.Worker;
import cz.muni.fi.pv168.reminder.entities.Task;
import java.util.List;
import javax.sql.DataSource;

/**
 *
 * @author Adic
 */
public interface AssignmentManager {

    /**
     *
     * @param task
     * @param worker
     */
    public void assignTaskToWorker(Task task, Worker worker);

    /**
     *
     * @param task
     * @param worker
     */
    public void removeTaskFromWorker(Task task, Worker worker);

    /**
     *
     * @param worker
     * @return
     */
    public List<Task> findTasksOfWorker(Worker worker);

    /**
     *
     * @param task
     * @return
     */
    public List<Worker> findWorkersOfTask(Task task);

    void setDataSource(DataSource ds);
}
